package com.he.DesignPatterns.builder.demo1;

/**
 * @description: 指挥者类
 * @Author: HCL
 * @Date: 2024/8/26 11:25
 */
public class Director {
    private Builder builder;

    public Director(Builder builder){
        this.builder = builder;
    }

    /**
    * @Description 构建自行车
    * @Author HCL
    * @Date 2024/8/26 11:28
    * @Param []
    * @Return com.he.DesignPatterns.builder.demo1.Bike
    */
    public Bike construct(){
        builder.buildFrame();
        builder.buildSeat();
        return builder.creatBike();
    }
}
